/**
 * 学院专业类型数组
 */
//colleage and profession list
var col_pro_list = new Array();
col_pro_list[0] = new Array();
//"id","name","pid","class"
col_pro_list[1] = new Array("1","软件学院","0","0");
col_pro_list[2] = new Array("2","软件工程","1","1");
col_pro_list[3] = new Array("3","软件工程（1+3）","1","1");
col_pro_list[4] = new Array("4","软件工程（2+2）","1","1");
col_pro_list[5] = new Array("5","数字媒体技术","1","1");
col_pro_list[6] = new Array("6","软件工程（国际）","1","1");
col_pro_list[7] = new Array("7","软件工程（赴日加强）","1","1");

col_pro_list[8] = new Array("8","艺术学院","0","0");
col_pro_list[9] = new Array("9","音乐表演","8","1");
col_pro_list[10] = new Array("10","艺术设计","8","1");

col_pro_list[11] = new Array("11","资源与土木工程学院","0","0");
col_pro_list[12] = new Array("12","采矿工程","11","1");
col_pro_list[13] = new Array("13","安全工程","11","1");
col_pro_list[14] = new Array("14","土木工程","11","1");
col_pro_list[15] = new Array("15","矿物加工工程","11","1");
col_pro_list[16] = new Array("16","环境工程","11","1");
col_pro_list[17] = new Array("17","测绘工程","11","1");
col_pro_list[18] = new Array("18","城市规划","11","1");
col_pro_list[19] = new Array("19","勘查技术与工程","11","1");
col_pro_list[20] = new Array("20","建筑学","11","1");
col_pro_list[21] = new Array("21","资源勘查工程","11","1");

col_pro_list[22] = new Array("22","材料与冶金学院","0","0");
col_pro_list[23] = new Array("23","环境科学","22","1");
col_pro_list[24] = new Array("24","冶金工程","22","1");
col_pro_list[25] = new Array("25","材料科学与工程","22","1");
col_pro_list[26] = new Array("26","材料成型及控制工程","22","1");
col_pro_list[27] = new Array("27","热能与动力工程","22","1");
col_pro_list[28] = new Array("28","尖子班","22","1");
col_pro_list[29] = new Array("29","资源循环科学与工程","22","1");
col_pro_list[30] = new Array("30","新能源科学与工程","22","1");

col_pro_list[31] = new Array("31","机械工程与自动化学院","0","0");
col_pro_list[32] = new Array("32","机械工程及自动化","31","1");
col_pro_list[33] = new Array("33","过程装备与控制工程","31","1");
col_pro_list[34] = new Array("34","工业设计","31","1");
col_pro_list[35] = new Array("35","尖子班","31","1");
col_pro_list[36] = new Array("36","车辆工程","31","1");

col_pro_list[37] = new Array("37","信息科学与工程学院","0","0");
col_pro_list[38] = new Array("38","自动化","37","1");
col_pro_list[39] = new Array("39","测控技术与仪器","37","1");
col_pro_list[40] = new Array("40","通信工程","37","1");
col_pro_list[41] = new Array("41","计算机科学与技术","37","1");
col_pro_list[42] = new Array("42","电子信息工程","37","1");
col_pro_list[43] = new Array("43","计算机尖子班","37","1");
col_pro_list[44] = new Array("44","自动化尖子班","37","1");
col_pro_list[45] = new Array("45","电气工程及其自动化","37","1");
col_pro_list[46] = new Array("46","电子科学与技术","37","1");
col_pro_list[47] = new Array("47","物联网工程","37","1");

col_pro_list[48] = new Array("48","工商管理学院","0","0");
col_pro_list[49] = new Array("49","工商管理","48","1");
col_pro_list[50] = new Array("50","会计学","48","1");
col_pro_list[51] = new Array("51","工业工程","48","1");
col_pro_list[52] = new Array("52","市场营销","48","1");
col_pro_list[53] = new Array("53","金融学","48","1");
col_pro_list[54] = new Array("54","国际经济与贸易","48","1");
col_pro_list[55] = new Array("55","信息管理与信息系统","48","1");
col_pro_list[56] = new Array("56","尖子班","48","1");

col_pro_list[57] = new Array("57","理学院","0","0");
col_pro_list[58] = new Array("58","信息与计算科学","57","1");
col_pro_list[59] = new Array("59","应用物理学","57","1");
col_pro_list[60] = new Array("60","材料物理","57","1");
col_pro_list[61] = new Array("61","应用化学","57","1");
col_pro_list[62] = new Array("62","工程力学","57","1");
col_pro_list[63] = new Array("63","生物工程","57","1");
col_pro_list[64] = new Array("64","数学及应用数学","57","1");

col_pro_list[65] = new Array("65","文法学院","0","0");
col_pro_list[66] = new Array("66","新闻学","65","1");
col_pro_list[67] = new Array("67","思想政治教育","65","1");
col_pro_list[68] = new Array("68","行政管理","65","1");
col_pro_list[69] = new Array("69","法学","65","1");
col_pro_list[70] = new Array("70","公共事业管理","65","1");
col_pro_list[71] = new Array("71","经济学","65","1");
col_pro_list[72] = new Array("72","哲学","65","1");

col_pro_list[73] = new Array("73","外国语学院","0","0");
col_pro_list[74] = new Array("74","英语","73","1");
col_pro_list[75] = new Array("75","日语","73","1");
col_pro_list[76] = new Array("76","俄语","73","1");
col_pro_list[77] = new Array("77","德语","73","1");

col_pro_list[78] = new Array("78","体育部","0","0");
col_pro_list[79] = new Array("79","社会体育","78","1");

col_pro_list[80] = new Array("80","中荷生物医学与信息工程学院","0","0");
col_pro_list[81] = new Array("81","生物医学工程","80","1");
col_pro_list[82] = new Array("82","生物医学工程尖子班","80","1");

col_pro_list[83] = new Array("83","国际交流学院","0","0");
col_pro_list[84] = new Array("84","汉语言","83","1");

/**
 * 得到所有学院
 * @returns {Array}
 */
function getAllCol() {
	var colArray = new Array();
	for(var i = 0; i < col_pro_list.length; i++) {
		if (col_pro_list[i][3] == 0) {
			colArray.push(col_pro_list[i]);
		}
	}
	return colArray;
}

/**
 * 按照学院id得到所有的专业
 * @param id
 * @returns {Array}
 */
function getProByColId(id) {
	var proArray = new Array();
	for(var i = 0; i < col_pro_list.length; i++) {
		if (col_pro_list[i][2] == id) {
			proArray.push(col_pro_list[i]);
		}
	}
	return proArray;
}

function getColProNameById(id) {
	return col_pro_list[id][1];
}

/**
 * 性别类型数组
 */
var gender_list = new Array();
gender_list[0] = new Array("类型");
gender_list[1] = new Array("男");
gender_list[2] = new Array("女");

function getGenderNameById(id) {
	return gender_list[id][0];
}

/**
 * 得到所有性别
 * @returns {Array}
 */
function getAllGender() {
	var genderArray = new Array();
	for(var i = 1; i < gender_list.length; i++) {
		genderArray.push(gender_list[i]);
	}
	return genderArray;
}

/**
 * 用户类型数组
 */
var user_category_list = new Array();
user_category_list[0] = new Array("类型");
user_category_list[1] = new Array("社团");
user_category_list[2] = new Array("社联成员");
user_category_list[3] = new Array("社团指导老师");
user_category_list[4] = new Array("管理员");

function getUserCategoryNameById(id) {
	return user_category_list[id][0];
}

function getAllUserCategory() {
	var userCategoryArray = new Array();
	for(var i = 1; i < user_category_list.length; i++) {
		userCategoryArray.push(user_category_list[i]);
	}
	return userCategoryArray;
}

/**
 * 社联成员类型数组
 */
var association_category_list = new Array();
association_category_list[0] = new Array("类型");
association_category_list[1] = new Array("宣传部");
association_category_list[2] = new Array("网络技术部");
association_category_list[3] = new Array("策划部");
association_category_list[4] = new Array("社团管理部");
association_category_list[5] = new Array("组织部");
association_category_list[6] = new Array("办公室");

function getAssociationCategoryNameById(id) {
	return association_category_list[id][0];
}

function getAllAssociationCategory() {
	var associationCategoryArray = new Array();
	for(var i = 1; i < association_category_list.length; i++) {
		associationCategoryArray.push(association_category_list[i]);
	}
	return associationCategoryArray;
}

/**
 * 社团类型数组
 */
var society_category_list = new Array();
society_category_list[0] = new Array("类型");
society_category_list[1] = new Array("人文艺术");
society_category_list[2] = new Array("志愿服务");
society_category_list[3] = new Array("科技创新");
society_category_list[4] = new Array("理论学术");
society_category_list[5] = new Array("体育竞技");
society_category_list[6] = new Array("创业实践");
society_category_list[7] = new Array("艺术团");

function getSocietyCategoryNameById(id) {
	return society_category_list[id][0];
}

/**
 * 得到所有社团分类
 * @returns {Array}
 */
function getAllSocietyCategory() {
	var societyCategoryArray = new Array();
	for(var i = 1; i < society_category_list.length; i++) {
		societyCategoryArray.push(society_category_list[i]);
	}
	return societyCategoryArray;
}

/**
 * 管理员类型数组
 */
var admin_category_list = new Array();
admin_category_list[0] = new Array("类型");
admin_category_list[1] = new Array("宣传部");
admin_category_list[2] = new Array("网络技术部");
admin_category_list[3] = new Array("策划部");
admin_category_list[4] = new Array("社团管理部");
admin_category_list[5] = new Array("组织部");
admin_category_list[6] = new Array("办公室");
admin_category_list[7] = new Array("团委老师");
admin_category_list[8] = new Array("超级管理员");

function getAdminCategoryNameById(id) {
	return admin_category_list[id][0];
}

/**
 * 得到所有管理员分类
 * @returns {Array}
 */
function getAllAdminCategory() {
	var adminCategoryArray = new Array();
	for(var i = 1; i < admin_category_list.length; i++) {
		adminCategoryArray.push(admin_category_list[i]);
	}
	return adminCategoryArray;
}

var society_status_list = new Array();
society_status_list[0] = new Array('0;0;0', "待审核");
//初审审通过
society_status_list[1] = new Array('2;0;0', "初审成功");
society_status_list[2] = new Array('1;0;0', "初审失败");
//复审通过
society_status_list[3] = new Array('2;2;0', "复审成功");
society_status_list[4] = new Array('2;1;0', "复审失败");
//终审通过
society_status_list[5] = new Array('2;2;2', "终审成功");
society_status_list[6] = new Array('2;2;1', "终审失败");

function getSocietyStatusByFlag(flag_num) {
	for(var i = 0; i < society_status_list.length; i++) {
		if (society_status_list[i][0] == flag_num) {
			return society_status_list[i][1];
		}
	}
}

function getAllSocietyStatus() {
	var societyStatusArray = new Array();
	for(var i = 0; i < society_status_list.length; i++) {
		societyStatusArray.push(society_status_list[i]);
	}
	return societyStatusArray;
}

var association_status_list = new Array();
association_status_list[0] = new Array("待审核");
association_status_list[1] = new Array("审核失败");
association_status_list[2] = new Array("审核成功");

function getAssociationStatusByFlag(flag_num) {
	return association_status_list[flag_num][0];
}

function getAllAssociationStatus() {
	var associationStatusArray = new Array();
	for(var i = 0; i < association_status_list.length; i++) {
		associationStatusArray.push(association_status_list[i]);
	}
	return associationStatusArray;
}

var association_function_list = new Array();
association_function_list[0] = new Array("普通账号");
association_function_list[1] = new Array("功能账号");

function getAssociationFunctionByFlag(flag_num) {
	return association_function_list[flag_num][0];
}

function getAllAssociationFunction() {
	var associationFunctionArray = new Array();
	for(var i = 0; i < association_function_list.length; i++) {
		associationFunctionArray.push(association_function_list[i]);
	}
	return associationFunctionArray;
}

var news_announcement_status_list = new Array();
news_announcement_status_list[0] = new Array("未发布");
news_announcement_status_list[1] = new Array("已发布");

function getAssociationFunctionByFlag(flag_num) {
	return association_function_list[flag_num][0];
}

function getAllAssociationFunction() {
	var associationFunctionArray = new Array();
	for(var i = 0; i < association_function_list.length; i++) {
		associationFunctionArray.push(association_function_list[i]);
	}
	return associationFunctionArray;
}